package com.framework.loippi.dao;

import com.framework.loippi.entity.TBbs;
import com.framework.loippi.mybatis.dao.GenericDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO - TBbs(论坛发布记录表)
 * 
 * @author wmj
 * @version 2.0
 */
public interface TBbsDao  extends GenericDao<TBbs, Long> {
	List<TBbs> findListByPage(Object parameter);
        Long deletes(Object parameter);

    List<TBbs> findByUserId(@Param(value = "userId")Long userId, @Param(value = "cur")Integer cur, @Param(value = "pageSize")Integer pageSize);

    List<TBbs> findAllByPage(@Param(value = "cur")Integer cur, @Param(value = "pageSize")Integer pageSize);
}
